package cn.wonderland.house.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 房屋信息表
 * </p>
 *
 * @author wonderland
 * @since 2023-04-26
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class HousingInformation implements Serializable {

    private Long hId;
    /**
     * 房屋标题
     */
    private String hTitlex;
    /**
     * 房屋金额
     */
    private BigDecimal hPrice;
    /**
     * 房屋面积
     */
    private BigDecimal hArea;
    /**
     * 房屋年代
     */
    private String hYears;
    /**
     * 1:电梯、3：步梯、5：别墅、7：公寓
     */
    private Integer hType;
    /**
     * 小区名字
     */
    private String hQuartersName;
    /**
     * 房屋状态：1:已出租、2：未出租
     */
    private Integer hStatus;
    /**
     * 房屋信息发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date hCreateTime;


    @Override
    public String toString() {
        return "HousingInformation{" +
                ", hId=" + hId +
                ", hTitlex=" + hTitlex +
                ", hPrice=" + hPrice +
                ", hArea=" + hArea +
                ", hYears=" + hYears +
                ", hType=" + hType +
                ", hQuartersName=" + hQuartersName +
                ", hStatus=" + hStatus +
                ", hCreateTime=" + hCreateTime +
                "}";
    }
}
